package com.xunjie.domains;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ToString
@TableName("JOBS")
public class Jobs {

    @TableId(value = "JOBID",type = IdType.AUTO)
    private Integer jobId;

    @TableField("JOBNUMBER")
    private Integer jobNumber;

    @TableField("JOBTYPE")
    private String jobType;

    @TableField("JOBMACHINE")
    private Integer jobMachine;

    @TableField("JOBSTATUS")
    private Integer jobStatus;

    @TableField("JOBCREATETIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS")
    private Date jobCreateTime;

    @TableField("JOBSTARTTIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS")
    private Date jobStartTime;

    @TableField("JOBENDTIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS")
    private Date jobEndTime;
}
